package cn.shengchao.examstar.gankao.infrastrure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "gk_user_section")
public class GkUserSection {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private Integer courseId;

    /**
     * 过期时间
     */
    @TableField(value = "lesson_id")
    private Integer lessonId;

    /**
     * 过期时间
     */
    @TableField(value = "section_id")
    private Integer sectionId;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private String createdAt;

    /**
     * 过期时间
     */
    @TableField(value = "expires")
    private String expires;

    /**
     * 是否过期：0未过期，1已过期
     */
    @TableField(value = "is_expired")
    private Integer isExpired;

    /**
     * 0草稿1现行 2历史
     */
    @TableField(value = "data_status")
    private Integer dataStatus;
}